package com.thtfpc.ssdp;

public class SSDPMessageBuilder {
    private SSDPMessage message;

    public SSDPMessageBuilder() {
        message = new SSDPMessage(null);
    }

    public SSDPMessageBuilder header(String key, String value) {
        message.addHeader(key, value);
        return this;
    }

    public SSDPMessageBuilder messageType(String type) {
        message.setMessageType(type);
        return this;
    }

    public SSDPMessageBuilder address(String address) {
        message.setAddress(address);
        return this;
    }

    public SSDPMessageBuilder port(int port) {
        message.setPort(port);
        return this;
    }

    public SSDPMessage build() {
        return message;
    }
}
